/**
 * @description validate
 * @author 盘古他爹
 */
import { ElForm } from "element-plus"
class Validate {
  async formValidate(form: InstanceType<typeof ElForm>) {
    try {
      const res = await form.validate()
      return res
    } catch (err) {
      console.error(err)
      return false
    }
  }
}

export default new Validate()
